package com.rightsidetech.system.dtos.request.store;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @Package: com.rightsidetech.system.dtos.request.store
 * @ClassName: StoreAppLoginReq
 * @Author: yinj
 * @CreateTime: 2021/11/04 14:05
 */
@Data
public class StoreAppCodeLoginReq implements Serializable {

    @ApiModelProperty(value = "手机设备号", required = true)
    private String deviceId;
    @ApiModelProperty(value = "设备类型1,安卓 2,ios", required = true)
    private Byte deviceType;

    @ApiModelProperty(value = "手机号", required = true)
    @NotBlank(message = "手机号必填项不能为空")
    @Pattern(regexp = "^1[0-9]{10}$",message = "请输入正确的手机号")
    private String phoneNo;
    @ApiModelProperty(value = "验证码", required = true)
    @NotBlank(message = "验证码必填项不能为空")
    private String verifyCode;
    @ApiModelProperty(value = "验证码id", required = true)
    private String verifyCodeId;

    @ApiModelProperty(value = "登录ip(不传)",hidden = true)
    private String clientIp;
}
